<?php 

	include_once('class.shield.php');

	# init the shield
	$shield = new shield();
	
	# check to see if the data has been sent
	if($shield->is_form_shielded())
	{
?>
		Here the information that was sent by the form you submitted...<br />
		<br />
		<pre>
<?php
		print_r($_REQUEST);
?>
		</pre>
		<br />
		...and now here is the decrypted information that was protected from those prying eyes...<br />
		<br />
		<pre>
<?php
		$shield->expose_form(true);
		print_r($_REQUEST);
?>
		</pre>
		<br />
		NOTE : You should of course always use https whenever possible, but this little trick comes in handy when submitting
		quick forms
<?php
	}
	else 
	{
	
?>

<form name="test" action="" method="POST">
	Test Text Fields<br />
	<input type="text" name="there" value="Hello World!" /><br />
	<input type="text" name="is" value="I want to party!" /><br />
	<input type="text" name="one" value="but I don't have any money" /><br />
	<input type="text" name="monster" value=":-(" /><br />
	<input type="text" name="above" value="So I shall not go out." /><br />
	<input type="text" name="the" value="Maybe I'll write some code." /><br />
	<input type="text" name="attic" value="See you all later..." /><br />
	<br />
	Encryption Key <i>(remember it is case sensetive)</i><br />
<?php
	# create the image used to pass the key to the user
	# note you can download white bold from www.WebpagePublicity.com/free-fonts/w/White Bold.ttf
	$shield->create_html_elements('test', array('there', 'is', 'one', 'monster', 'above', 'the', 'attic'/**/));
?>
<br /><br />
<img src="example.keyimg.php" /><br />
<br />
<input type="submit" />
</form>
<?php
	}
?>